<?php

declare(strict_types=1);
namespace App\Controller\Api;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;
use App\Service\RegionService\RegionService;

/**
 * @Controller(prefix="/RegionService")
 * 地址库服务查询中心 
 */
class RegionController extends AbstractController
{
    /**
     * 获取全地址库信息
     * @RequestMapping(path="QueryRegionList", methods="POST")
     * @return string[]
     */
    public function queryRegionList( RequestInterface $request ,RegionService $RegionService ) 
    {
        return $RegionService->queryRegionListBySearch($request->getParsedBody());
    }

    /**
     * @RequestMapping(path="QueryRegionHasParsedByGaoDeAddress", methods="POST")
     * @return string[]
     */
    public function queryRegionHasParsedByGaoDeAddress( RequestInterface $request ,RegionService $RegionService )
    {
        return $RegionService->queryRegionHasParsedByGaoDeAddress($request->getParsedBody());
    }
    
    
}
